package com.leeon.exception;

class VeryImporntantException extends Exception{
	
	@Override
	public String toString() {
		return "VeryImportantException";
	}
}

class HoHumException extends Exception{
	@Override
	public String toString() {
		return "HoHumException";
	}
}

public class LostMessage {
	void f() throws VeryImporntantException{
		throw new VeryImporntantException();
	}
	void dispose() throws HoHumException{
		throw new HoHumException();
	}
	
	public static void main(String[] args){
		try {
			LostMessage lostMessage = new LostMessage();
			try {
				lostMessage.f();
			} finally {
				lostMessage.dispose();
			}
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}
